package Demo06.duotai;

import Demo05.ToString.LifePotion;
import Demo05.ToString.MagicPotion;

public class Demo02 {
    public static void main(String[] args) {
        Hero garen = new Hero();
        garen.name = "盖伦";

        LifePotion lp = new LifePotion();
        MagicPotion mp = new MagicPotion();
        System.out.println(lp);
        System.out.println(mp);

    }
}
